package com.springcloud.commons.result;

import java.io.Serializable;

/**
 * @description：操作结果集
 * @author：wangpeng
 * @date：2015/10/1 14:51
 */
public class Result<T> implements Serializable {

    /*错误码*/
    private Integer code = 200;

    /*提示信息 */
    private String msg = "调用成功";

    /*具体内容*/
    private  T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
